package com.cit.service;

import org.w3c.dom.Document;
/**
 * 
 * @author Lang Yu(lang.yu@hp.com)
 * @time Mar 7, 2011 12:05:10 PM
 * @file ValidateService.java
 * @package com.cit.service
 * @version 1.0
 * @see
 * Business Interface class to process the field validation of SOAP body's xml file
 */
public interface ValidateService {
	/**
	 * In this function, we received the input document with xml format and it is from the request data's
	 * soap message's body part, then it read the configuration xml file which is saved in hard disk, then
	 * we check the required data in the method and fill the errorMessages to out put.Because here errorMessage
	 * is StringBuilder type, and it pass in the function by reference.
	 * @param inputDoc
	 * @param validateDoc
	 * @param errorMessage
	 * @return
	 */
	boolean validateRequired(Document inputDoc,Document validateDoc, StringBuilder errorMessage);
}
